4 // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
6 // The use and distribution terms for this software are contained in the file
7 // named license.txt, which can be found in the root of this distribution.
8 // By using this software in any fashion, you are agreeing to be bound by the
9 // terms of this license.
11 // You must not remove this notice, or any other, from this software.
16 namespace Microsoft
.JScript
{
19 using System
.Security
.Permissions
;
20 using System
.Runtime
.Serialization
;
23 public sealed class ContinueOutOfFinally
: ApplicationException
{
26 public ContinueOutOfFinally() : this(0) {
29 public ContinueOutOfFinally(int target
){
33 public ContinueOutOfFinally(string m
) : base(m
) {
36 public ContinueOutOfFinally(string m
, Exception e
) : base(m
, e
) {
39 private ContinueOutOfFinally(SerializationInfo s
, StreamingContext c
) : base(s
, c
) {
40 this.target
= s
.GetInt32("Target");
43 [SecurityPermissionAttribute(SecurityAction
.Demand
, SerializationFormatter
=true)]
44 public override void GetObjectData(SerializationInfo s
, StreamingContext c
)
46 base.GetObjectData(s
, c
);
47 s
.AddValue("Target", this.target
);